//
//  XMMyAddressView.h
//  XMJJ_zml
//
//  Created by 丁浩 on 2025/5/29.
//

#import "XMBaseView.h"
#import "XMAddressModel.h"

NS_ASSUME_NONNULL_BEGIN

@protocol XMMyAddressViewDelegate <NSObject>

- (void)addressAddWithAddressModel:(XMAddressModel *)addressModel; //创建地址

- (void)areaSelect; //地区选择

- (void)addressSelectWithAddressModel:(XMAddressModel *)addressModel;

@end

@interface XMMyAddressView : XMBaseView

@property (nonatomic, weak) id<XMMyAddressViewDelegate>delegate;

- (void)setContentWithAddressModelArr:(NSArray *)addressModelArr; //地址列表

- (void)setContentWithAreaStr:(NSString *)areaStr
                       areaId:(NSString *)areaId;  //地区选择结果

- (void)addressAddSuccess;  //地址添加成功

@end

NS_ASSUME_NONNULL_END
